<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS的文字属性-line-height</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        p{
            font-size: 14px;
            background-color: green;
            width: 100px;
            margin: 100px auto;
            line-height: 30px;
            line-height: 300%;
        }
    </style>
</head>
<body>
    <p>文字</p>
</body>
</html>